{extend name="base" /} {block name="body"}
<div class="layui-body">
	<div class="navbar">
		<a><cite>售票管理</cite></a>&nbsp;<span class="layui-box">&gt;</span>
		<a href=""><cite>票务管理</cite></a>
	</div>
	<!--tab标签-->
	<div class="layui-tab layui-tab-brief">
		<blockquote class="layui-elem-quote">
			<div class="layui-inline">
				<div class="layui-input-inline">
					<input type="text" placeholder="请输入关键字" class="layui-input">
				</div>
				<a class="layui-btn search_btn"><i class="fa fa-search"></i> 查询</a>
				<a class="layui-btn layui-btn-normal" href="{:url('add_item')}"><i class="fa fa-plus-circle"></i> 添加</a>
			</div>
		</blockquote>
		<div class="layui-tab-content">
			<table class="layui-table layui-form">
				<thead>
					<tr>
						<th style="width: 30px;">
							<input type="checkbox" lay-skin="primary" lay-filter="allChoose">
						</th>
						<th>项目名称</th>
						<th>消费次数</th>
						<th>项目说明</th>
						<th>票面排序</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<form id="listForm">
						{foreach name="list" item="vo"}
						<tr>
							<td>
								<input type="checkbox" name="ids[]" value="{$vo.id}" class="layui-checkbox checkbox-ids" lay-skin="primary">
							</td>
							<td>{$vo.title}</td>
							<td>{$vo.nums}</td>
							<td>{$vo.desc}</td>
							<td>{$vo.sort}</td>
							<td>
								<a class="layui-btn layui-btn-normal " href="edit_item?id={$vo.id}"><i class="fa fa-edit"></i> 编辑</a>
								<a class="layui-btn layui-btn-error  confirm" ref="delete_item?id={$vo.id}"><i class="fa fa-trash-o"></i> 删除</a>
							</td>
						</tr>
						{/foreach}
					</form>
				</tbody>
			</table>
		</div>
	</div>
</div>
{/block}